import type { LogOutputChannel } from "vscode";

export class Logger {

    private static outputChannel: LogOutputChannel

    static init(outputChannel: LogOutputChannel) {
        Logger.outputChannel = outputChannel
    }

    static log(message: string) {
        Logger.outputChannel.appendLine(message)
    }

    static info(message: string) {
        Logger.outputChannel.appendLine(`[INFO] ${message}`)
    }

    static warn(message: string) {
        Logger.outputChannel.appendLine(`[WARN] ${message}`)
    }

    static error(message: string) {
        Logger.outputChannel.appendLine(`[ERROR] ${message}`)
    }
}